#include"tcpClient.hpp"
#include<memory>
using namespace Client;
static void my_perrno(char *message)
{
    printf("%s使用有误,请加上端口\n", message);
}

int main(int argc,char* argv[]){
    if(argc!=3){
        my_perrno(argv[0]);
        exit(1);
    }

    string ip = argv[1];
    uint16_t port = atoi(argv[2]);

    unique_ptr<tcpClient> ret(new tcpClient(ip,port));
    ret->initClient();
    ret->start();
    





    return 0;
}